// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 列表-修改电池问题解决状态 PUT /diagnosis/batteryfault/editBatteryProblemStatus */
export async function batteryFaultControllerEditBatteryProblemStatus(
  body: API.DiagnosisStatusRequest,
  options?: { [key: string]: any },
) {
  return request<API.ApiResult>(`${apiPrefix}/diagnosis/batteryfault/editBatteryProblemStatus`, {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 列表-修改采集问题解决状态 PUT /diagnosis/batteryfault/editCollectProblemStatus */
export async function batteryFaultControllerEditCollectProblemStatus(
  body: API.DiagnosisStatusRequest,
  options?: { [key: string]: any },
) {
  return request<API.ApiResult>(`${apiPrefix}/diagnosis/batteryfault/editCollectProblemStatus`, {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 列表-修改通讯问题解决状态 PUT /diagnosis/batteryfault/editCommunicateProblemStatus */
export async function batteryFaultControllerEditCommunicateProblemStatus(
  body: API.DiagnosisStatusRequest,
  options?: { [key: string]: any },
) {
  return request<API.ApiResult>(
    `${apiPrefix}/diagnosis/batteryfault/editCommunicateProblemStatus`,
    {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** 列表-修改温度问题解决状态 PUT /diagnosis/batteryfault/editTemperatureProblemStatus */
export async function batteryFaultControllerEditTemperatureProblemStatus(
  body: API.DiagnosisStatusRequest,
  options?: { [key: string]: any },
) {
  return request<API.ApiResult>(
    `${apiPrefix}/diagnosis/batteryfault/editTemperatureProblemStatus`,
    {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** 列表-查询电池问题 GET /diagnosis/batteryfault/getBatteryProblem */
export async function batteryFaultControllerGetBatteryProblem(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetBatteryProblemParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationBatteryProblemResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getBatteryProblem`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 图表-查询电池问题 GET /diagnosis/batteryfault/getChartForBatteryProblem */
export async function batteryFaultControllerGetChartForBatteryProblem(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetChartForBatteryProblemParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultProblemChartResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getChartForBatteryProblem`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 图表-查询采集问题 GET /diagnosis/batteryfault/getChartForCollectProblem */
export async function batteryFaultControllerGetChartForCollectProblem(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetChartForCollectProblemParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultProblemChartResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getChartForCollectProblem`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 图表-查询通讯问题-通讯数据丢包率统计 GET /diagnosis/batteryfault/getChartForCommunicateLossRate */
export async function batteryFaultControllerGetChartForCommunicateLossRate(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetChartForCommunicateLossRateParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultProblemChartResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getChartForCommunicateLossRate`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 图表-查询通讯问题-通讯故障统计 GET /diagnosis/batteryfault/getChartForCommunicateProblem */
export async function batteryFaultControllerGetChartForCommunicateProblem(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetChartForCommunicateProblemParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultProblemChartResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getChartForCommunicateProblem`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 图表-查询温度问题 GET /diagnosis/batteryfault/getChartForTemperatureProblem */
export async function batteryFaultControllerGetChartForTemperatureProblem(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetChartForTemperatureProblemParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultProblemChartResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getChartForTemperatureProblem`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 列表-查询采集问题 GET /diagnosis/batteryfault/getCollectProblem */
export async function batteryFaultControllerGetCollectProblem(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetCollectProblemParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationCollectProblemResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getCollectProblem`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 列表-查询通讯数据丢包率 GET /diagnosis/batteryfault/getCommunicateLossRate */
export async function batteryFaultControllerGetCommunicateLossRate(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetCommunicateLossRateParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationCommunicateLossRateResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getCommunicateLossRate`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 列表-查询通讯问题 GET /diagnosis/batteryfault/getCommunicateProblem */
export async function batteryFaultControllerGetCommunicateProblem(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetCommunicateProblemParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationCommunicateProblemResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getCommunicateProblem`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 列表-查询温度问题 GET /diagnosis/batteryfault/getTemperatureProblem */
export async function batteryFaultControllerGetTemperatureProblem(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.batteryFaultControllerGetTemperatureProblemParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationTemperatureProblemResponse>(
    `${apiPrefix}/diagnosis/batteryfault/getTemperatureProblem`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}
